//
//  SideslipBtn.m
//  LYSideslipCellDemo
//
//  Created by John on 2018/5/23.
//  Copyright © 2018年 Louis. All rights reserved.
//

#import "SideslipBtn.h"

@implementation SideslipBtn

-(void)setSizeW:(float)sizeW{
    _sizeW = sizeW;
    UIButton *btn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, sizeW, self.frame.size.height)];
    btn.adjustsImageWhenHighlighted = NO;
    [btn setTitle:self.btnTitle forState:0];
    [btn setImage:self.image forState:0];
    btn.titleLabel.font = [UIFont systemFontOfSize:self.fontSize];
    [btn setTitleColor:self.titleColor forState:0];
    [self addSubview:btn];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
